<div class="park-footer">
    <div class="park-footer-nav">
        <div class="park-footer-nav-item park-footer-nav-item--row <if condition="$cur eq 'index'">park-footer-nav-item--active</if>"" onclick="nav_detail(1);">
            <div class="nav-icon--admin nav-icon__home--admin"></div>
            <div class="nav-text">&nbsp;&nbsp;首页</div>
        </div>
        <div class="park-footer-nav-item park-footer-nav-item--row <if condition="$cur eq 'user'">park-footer-nav-item--active</if>" onclick="nav_detail(2);">
            <div class="nav-icon--admin nav-icon__user--admin"></div>
            <div class="nav-text">&nbsp;&nbsp;个人中心</div>
        </div>
    </div>
</div>
<script>
    function nav_detail(num){
        if(num==1){
            var url = "{:U('Business/Index/home','',false)}";
        }else if(num==2){
            var url = "{:U('Business/User/index','',false)}";
        }
        window.location = url;
    }
</script>